#include "stm32f10x.h"                  // Device header
#include "PWM.h"
#include "Delay.h"
uint16_t compare;

int main()
{
	PWM_Init();
	
	while(1)
	{
		for(uint16_t i=1;i<=100;i++)
		{
			SetCompare(i);
			Delay_ms(10);
		}
		for(uint16_t i=100;i>0;i--)
		{
			SetCompare(i);
			Delay_ms(10);
		}
	}
}

